package com.dwin.h5.app.models;

public class WeatherModel {
    public String status;
    public Result result;

    @Override
    public String toString() {
        return "WeatherModel{" +
                "status='" + status + '\'' +
                ", result=" + result +
                '}';
    }

    public class AddressComponent {
        public String city; //长沙市
        public String direction; //
        public String distance; //
        public String district; //岳麓区
        public String province; //湖南省
        public String street; //麓云路
        public String street_number;

        @Override
        public String toString() {
            return "AddressComponent{" +
                    "city='" + city + '\'' +
                    ", direction='" + direction + '\'' +
                    ", distance='" + distance + '\'' +
                    ", district='" + district + '\'' +
                    ", province='" + province + '\'' +
                    ", street='" + street + '\'' +
                    ", street_number='" + street_number + '\'' +
                    '}';
        }
    }


    public class Result {
        public String formatted_address; //湖南省长沙市岳麓区麓云路
        public String business; //麓谷,望城坡
        public AddressComponent addressComponent; //
        public int cityCode;

        @Override
        public String toString() {
            return "Result{" +
                    "formatted_address='" + formatted_address + '\'' +
                    ", business='" + business + '\'' +
                    ", cityCode='" + cityCode + '\'' +
                    ", addressComponent=" + addressComponent +
                    '}';
        }
    }

//    {
//        "status":"OK",
//            "result":{
//        "location":{
//            "lng":112.897896,
//                    "lat":28.198351
//        },
//        "formatted_address":"湖南省长沙市岳麓区麓云路",
//                "business":"麓谷,望城坡",
//                "addressComponent":{
//            "city":"长沙市",
//                    "direction":"",
//                    "distance":"",
//                    "district":"岳麓区",
//                    "province":"湖南省",
//                    "street":"麓云路",
//                    "street_number":""
//        },
//        "cityCode":158
//    }
//    }
}
